package com.edfu.core.testmgt.vo;

import java.io.InputStream;
import java.io.Serializable;
import java.util.Map;

import javax.xml.bind.annotation.XmlRootElement;

import com.edfu.core.commons.beans.Category;
import com.edfu.core.commons.beans.Discount;
import com.edfu.core.commons.beans.Sell;

@XmlRootElement
public class Resource implements Serializable {
    private static final long serialVersionUID = 4397527226291298026L;
    
	private long id;
    private String name;
    private String description;
    private String uuid;
    private String type;
    private String contentType;
    private boolean exposed;
    private Category category;
    private InputStream inputStream;
    private Map<Long, String> parentMapping;
    private Sell sell;
    private Discount discount;

    public long getId() {
        return id;
    }
    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }
    public void setDescription(String description) {
        this.description = description;
    }

    public String getUuid() {
        return uuid;
    }
    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getType() {
        return type;
    }
    public void setType(String type) {
        this.type = type;
    }

    public String getContentType() {
        return contentType;
    }
    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public InputStream getInputStream() {
        return inputStream;
    }
    public void setInputStream(InputStream inputStream) {
        this.inputStream = inputStream;
    }
    
    public boolean isExposed() {
		return exposed;
	}
	public void setExposed(boolean exposed) {
		this.exposed = exposed;
	}
	
	public Category getCategory() {
		return category;
	}
	public void setCategory(Category category) {
		this.category = category;
	}
	
	public Map<Long, String> getParentMapping() {
		return parentMapping;
	}
	public void setParentMapping(Map<Long, String> parentMapping) {
		this.parentMapping = parentMapping;
	}
	
	public Sell getSell() {
		return sell;
	}
	public void setSell(Sell sell) {
		this.sell = sell;
	}
	
	public Discount getDiscount() {
		return discount;
	}
	public void setDiscount(Discount discount) {
		this.discount = discount;
	}	

}
